package com.ordersystem.service;

import com.ordersystem.domain.Dish;
import com.ordersystem.domain.DishRank;

import java.util.List;
import java.util.Map;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : DishService
 * @description : [描述说明该类的功能]
 * @createTime : [2022/3/26 14:19]
 * @updateUser : asus1020
 * @updateTime : [2022/3/26 14:19]
 * @updateRemark : [描述说明本次修改内容]
 */
public interface DishService {
    int addDish(Dish dish);
    int deleteDish(Integer did);
    int updateDish(Dish dish);
    Dish findDishById(Integer did);
    Map<String,Object> findDishes(String query, Integer cid, Integer pagenum, Integer pagesize);
    int saveDishImg(String dishImg,Integer did);
    List<Dish>findShoppingDish(Integer uid);
    List<Dish>findOrderDish(String dids);
    List<Dish>findOrderDishByUidAndDids(Integer uid,String dids);
    int addShoppingTrolley(Integer uid,Integer did,Integer number);
    List<Dish>findDishesByCid(Integer cid,Integer uid);
    int deleteShopping(Integer uid,Integer dids);
    List<DishRank>getDishRank(Integer rank);
    List<Dish>findDishDetailByOid(Integer oid);
}
